﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biljart.Model.Dao;

namespace Biljart.Model.Service
{
    class SeasonService: ISeasonService
    {
        private readonly ISeasonDao _seasonDao;

        public SeasonService()
        {
            _seasonDao = new SeasonDao();
        }

        public Season GetSeason(long id)
        {
            return _seasonDao.GetSeason(id);
        }

        public IEnumerable<Season> GetSeasons()
        {
            return _seasonDao.GetSeasons();

        }

        public IEnumerable<Season> GetSeasons(HashSet<long> ids)
        {
            return _seasonDao.GetSeasons(ids);
        }

        public bool AddSeason(Season season)
        {
            return _seasonDao.AddSeason(season);
        }
    }
}
